package mobi.hami.huapin.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class NoteInfoExample {
    /**
     * note_info
     */
    protected String orderByClause;

    /**
     * note_info
     */
    protected boolean distinct;

    /**
     * note_info
     */
    protected List<Criteria> oredCriteria;

    public NoteInfoExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    /**
     * note_info 2018-09-13
     */
    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andComtentIsNull() {
            addCriterion("comtent is null");
            return (Criteria) this;
        }

        public Criteria andComtentIsNotNull() {
            addCriterion("comtent is not null");
            return (Criteria) this;
        }

        public Criteria andComtentEqualTo(String value) {
            addCriterion("comtent =", value, "comtent");
            return (Criteria) this;
        }

        public Criteria andComtentNotEqualTo(String value) {
            addCriterion("comtent <>", value, "comtent");
            return (Criteria) this;
        }

        public Criteria andComtentGreaterThan(String value) {
            addCriterion("comtent >", value, "comtent");
            return (Criteria) this;
        }

        public Criteria andComtentGreaterThanOrEqualTo(String value) {
            addCriterion("comtent >=", value, "comtent");
            return (Criteria) this;
        }

        public Criteria andComtentLessThan(String value) {
            addCriterion("comtent <", value, "comtent");
            return (Criteria) this;
        }

        public Criteria andComtentLessThanOrEqualTo(String value) {
            addCriterion("comtent <=", value, "comtent");
            return (Criteria) this;
        }

        public Criteria andComtentLike(String value) {
            addCriterion("comtent like", value, "comtent");
            return (Criteria) this;
        }

        public Criteria andComtentNotLike(String value) {
            addCriterion("comtent not like", value, "comtent");
            return (Criteria) this;
        }

        public Criteria andComtentIn(List<String> values) {
            addCriterion("comtent in", values, "comtent");
            return (Criteria) this;
        }

        public Criteria andComtentNotIn(List<String> values) {
            addCriterion("comtent not in", values, "comtent");
            return (Criteria) this;
        }

        public Criteria andComtentBetween(String value1, String value2) {
            addCriterion("comtent between", value1, value2, "comtent");
            return (Criteria) this;
        }

        public Criteria andComtentNotBetween(String value1, String value2) {
            addCriterion("comtent not between", value1, value2, "comtent");
            return (Criteria) this;
        }

        public Criteria andCretate_timeIsNull() {
            addCriterion("cretate_time is null");
            return (Criteria) this;
        }

        public Criteria andCretate_timeIsNotNull() {
            addCriterion("cretate_time is not null");
            return (Criteria) this;
        }

        public Criteria andCretate_timeEqualTo(Date value) {
            addCriterion("cretate_time =", value, "cretate_time");
            return (Criteria) this;
        }

        public Criteria andCretate_timeNotEqualTo(Date value) {
            addCriterion("cretate_time <>", value, "cretate_time");
            return (Criteria) this;
        }

        public Criteria andCretate_timeGreaterThan(Date value) {
            addCriterion("cretate_time >", value, "cretate_time");
            return (Criteria) this;
        }

        public Criteria andCretate_timeGreaterThanOrEqualTo(Date value) {
            addCriterion("cretate_time >=", value, "cretate_time");
            return (Criteria) this;
        }

        public Criteria andCretate_timeLessThan(Date value) {
            addCriterion("cretate_time <", value, "cretate_time");
            return (Criteria) this;
        }

        public Criteria andCretate_timeLessThanOrEqualTo(Date value) {
            addCriterion("cretate_time <=", value, "cretate_time");
            return (Criteria) this;
        }

        public Criteria andCretate_timeIn(List<Date> values) {
            addCriterion("cretate_time in", values, "cretate_time");
            return (Criteria) this;
        }

        public Criteria andCretate_timeNotIn(List<Date> values) {
            addCriterion("cretate_time not in", values, "cretate_time");
            return (Criteria) this;
        }

        public Criteria andCretate_timeBetween(Date value1, Date value2) {
            addCriterion("cretate_time between", value1, value2, "cretate_time");
            return (Criteria) this;
        }

        public Criteria andCretate_timeNotBetween(Date value1, Date value2) {
            addCriterion("cretate_time not between", value1, value2, "cretate_time");
            return (Criteria) this;
        }

        public Criteria andCreator_idIsNull() {
            addCriterion("creator_id is null");
            return (Criteria) this;
        }

        public Criteria andCreator_idIsNotNull() {
            addCriterion("creator_id is not null");
            return (Criteria) this;
        }

        public Criteria andCreator_idEqualTo(Integer value) {
            addCriterion("creator_id =", value, "creator_id");
            return (Criteria) this;
        }

        public Criteria andCreator_idNotEqualTo(Integer value) {
            addCriterion("creator_id <>", value, "creator_id");
            return (Criteria) this;
        }

        public Criteria andCreator_idGreaterThan(Integer value) {
            addCriterion("creator_id >", value, "creator_id");
            return (Criteria) this;
        }

        public Criteria andCreator_idGreaterThanOrEqualTo(Integer value) {
            addCriterion("creator_id >=", value, "creator_id");
            return (Criteria) this;
        }

        public Criteria andCreator_idLessThan(Integer value) {
            addCriterion("creator_id <", value, "creator_id");
            return (Criteria) this;
        }

        public Criteria andCreator_idLessThanOrEqualTo(Integer value) {
            addCriterion("creator_id <=", value, "creator_id");
            return (Criteria) this;
        }

        public Criteria andCreator_idIn(List<Integer> values) {
            addCriterion("creator_id in", values, "creator_id");
            return (Criteria) this;
        }

        public Criteria andCreator_idNotIn(List<Integer> values) {
            addCriterion("creator_id not in", values, "creator_id");
            return (Criteria) this;
        }

        public Criteria andCreator_idBetween(Integer value1, Integer value2) {
            addCriterion("creator_id between", value1, value2, "creator_id");
            return (Criteria) this;
        }

        public Criteria andCreator_idNotBetween(Integer value1, Integer value2) {
            addCriterion("creator_id not between", value1, value2, "creator_id");
            return (Criteria) this;
        }

        public Criteria andSpace_idIsNull() {
            addCriterion("space_id is null");
            return (Criteria) this;
        }

        public Criteria andSpace_idIsNotNull() {
            addCriterion("space_id is not null");
            return (Criteria) this;
        }

        public Criteria andSpace_idEqualTo(Integer value) {
            addCriterion("space_id =", value, "space_id");
            return (Criteria) this;
        }

        public Criteria andSpace_idNotEqualTo(Integer value) {
            addCriterion("space_id <>", value, "space_id");
            return (Criteria) this;
        }

        public Criteria andSpace_idGreaterThan(Integer value) {
            addCriterion("space_id >", value, "space_id");
            return (Criteria) this;
        }

        public Criteria andSpace_idGreaterThanOrEqualTo(Integer value) {
            addCriterion("space_id >=", value, "space_id");
            return (Criteria) this;
        }

        public Criteria andSpace_idLessThan(Integer value) {
            addCriterion("space_id <", value, "space_id");
            return (Criteria) this;
        }

        public Criteria andSpace_idLessThanOrEqualTo(Integer value) {
            addCriterion("space_id <=", value, "space_id");
            return (Criteria) this;
        }

        public Criteria andSpace_idIn(List<Integer> values) {
            addCriterion("space_id in", values, "space_id");
            return (Criteria) this;
        }

        public Criteria andSpace_idNotIn(List<Integer> values) {
            addCriterion("space_id not in", values, "space_id");
            return (Criteria) this;
        }

        public Criteria andSpace_idBetween(Integer value1, Integer value2) {
            addCriterion("space_id between", value1, value2, "space_id");
            return (Criteria) this;
        }

        public Criteria andSpace_idNotBetween(Integer value1, Integer value2) {
            addCriterion("space_id not between", value1, value2, "space_id");
            return (Criteria) this;
        }

        public Criteria andUsed_timesIsNull() {
            addCriterion("used_times is null");
            return (Criteria) this;
        }

        public Criteria andUsed_timesIsNotNull() {
            addCriterion("used_times is not null");
            return (Criteria) this;
        }

        public Criteria andUsed_timesEqualTo(Long value) {
            addCriterion("used_times =", value, "used_times");
            return (Criteria) this;
        }

        public Criteria andUsed_timesNotEqualTo(Long value) {
            addCriterion("used_times <>", value, "used_times");
            return (Criteria) this;
        }

        public Criteria andUsed_timesGreaterThan(Long value) {
            addCriterion("used_times >", value, "used_times");
            return (Criteria) this;
        }

        public Criteria andUsed_timesGreaterThanOrEqualTo(Long value) {
            addCriterion("used_times >=", value, "used_times");
            return (Criteria) this;
        }

        public Criteria andUsed_timesLessThan(Long value) {
            addCriterion("used_times <", value, "used_times");
            return (Criteria) this;
        }

        public Criteria andUsed_timesLessThanOrEqualTo(Long value) {
            addCriterion("used_times <=", value, "used_times");
            return (Criteria) this;
        }

        public Criteria andUsed_timesIn(List<Long> values) {
            addCriterion("used_times in", values, "used_times");
            return (Criteria) this;
        }

        public Criteria andUsed_timesNotIn(List<Long> values) {
            addCriterion("used_times not in", values, "used_times");
            return (Criteria) this;
        }

        public Criteria andUsed_timesBetween(Long value1, Long value2) {
            addCriterion("used_times between", value1, value2, "used_times");
            return (Criteria) this;
        }

        public Criteria andUsed_timesNotBetween(Long value1, Long value2) {
            addCriterion("used_times not between", value1, value2, "used_times");
            return (Criteria) this;
        }

        public Criteria andThumbup_timesIsNull() {
            addCriterion("thumbup_times is null");
            return (Criteria) this;
        }

        public Criteria andThumbup_timesIsNotNull() {
            addCriterion("thumbup_times is not null");
            return (Criteria) this;
        }

        public Criteria andThumbup_timesEqualTo(Long value) {
            addCriterion("thumbup_times =", value, "thumbup_times");
            return (Criteria) this;
        }

        public Criteria andThumbup_timesNotEqualTo(Long value) {
            addCriterion("thumbup_times <>", value, "thumbup_times");
            return (Criteria) this;
        }

        public Criteria andThumbup_timesGreaterThan(Long value) {
            addCriterion("thumbup_times >", value, "thumbup_times");
            return (Criteria) this;
        }

        public Criteria andThumbup_timesGreaterThanOrEqualTo(Long value) {
            addCriterion("thumbup_times >=", value, "thumbup_times");
            return (Criteria) this;
        }

        public Criteria andThumbup_timesLessThan(Long value) {
            addCriterion("thumbup_times <", value, "thumbup_times");
            return (Criteria) this;
        }

        public Criteria andThumbup_timesLessThanOrEqualTo(Long value) {
            addCriterion("thumbup_times <=", value, "thumbup_times");
            return (Criteria) this;
        }

        public Criteria andThumbup_timesIn(List<Long> values) {
            addCriterion("thumbup_times in", values, "thumbup_times");
            return (Criteria) this;
        }

        public Criteria andThumbup_timesNotIn(List<Long> values) {
            addCriterion("thumbup_times not in", values, "thumbup_times");
            return (Criteria) this;
        }

        public Criteria andThumbup_timesBetween(Long value1, Long value2) {
            addCriterion("thumbup_times between", value1, value2, "thumbup_times");
            return (Criteria) this;
        }

        public Criteria andThumbup_timesNotBetween(Long value1, Long value2) {
            addCriterion("thumbup_times not between", value1, value2, "thumbup_times");
            return (Criteria) this;
        }

        public Criteria andNote_class_idIsNull() {
            addCriterion("note_class_id is null");
            return (Criteria) this;
        }

        public Criteria andNote_class_idIsNotNull() {
            addCriterion("note_class_id is not null");
            return (Criteria) this;
        }

        public Criteria andNote_class_idEqualTo(Integer value) {
            addCriterion("note_class_id =", value, "note_class_id");
            return (Criteria) this;
        }

        public Criteria andNote_class_idNotEqualTo(Integer value) {
            addCriterion("note_class_id <>", value, "note_class_id");
            return (Criteria) this;
        }

        public Criteria andNote_class_idGreaterThan(Integer value) {
            addCriterion("note_class_id >", value, "note_class_id");
            return (Criteria) this;
        }

        public Criteria andNote_class_idGreaterThanOrEqualTo(Integer value) {
            addCriterion("note_class_id >=", value, "note_class_id");
            return (Criteria) this;
        }

        public Criteria andNote_class_idLessThan(Integer value) {
            addCriterion("note_class_id <", value, "note_class_id");
            return (Criteria) this;
        }

        public Criteria andNote_class_idLessThanOrEqualTo(Integer value) {
            addCriterion("note_class_id <=", value, "note_class_id");
            return (Criteria) this;
        }

        public Criteria andNote_class_idIn(List<Integer> values) {
            addCriterion("note_class_id in", values, "note_class_id");
            return (Criteria) this;
        }

        public Criteria andNote_class_idNotIn(List<Integer> values) {
            addCriterion("note_class_id not in", values, "note_class_id");
            return (Criteria) this;
        }

        public Criteria andNote_class_idBetween(Integer value1, Integer value2) {
            addCriterion("note_class_id between", value1, value2, "note_class_id");
            return (Criteria) this;
        }

        public Criteria andNote_class_idNotBetween(Integer value1, Integer value2) {
            addCriterion("note_class_id not between", value1, value2, "note_class_id");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("status is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("status is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(Integer value) {
            addCriterion("status =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(Integer value) {
            addCriterion("status <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(Integer value) {
            addCriterion("status >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("status >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(Integer value) {
            addCriterion("status <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(Integer value) {
            addCriterion("status <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<Integer> values) {
            addCriterion("status in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<Integer> values) {
            addCriterion("status not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(Integer value1, Integer value2) {
            addCriterion("status between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("status not between", value1, value2, "status");
            return (Criteria) this;
        }
    }

    /**
     * note_info
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    /**
     * note_info 2018-09-13
     */
    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}